package imper.main;


import java.net.URL;

import imper.main.view.BoatUnitView;
import imper.main.view.CivilUnitView;
import imper.main.view.EnumView;
import imper.main.view.IndustryView;
import imper.main.view.LoadGameView;
import imper.main.view.MapView;
import imper.main.view.TransportView;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;

import TWLSlick.TWLStateBasedGame;

public class MainView extends TWLStateBasedGame
{
	public MainView()
	{
		super("SlickBlocks");
		this.addState(new LoadGameView());
		this.addState(new IndustryView());
		this.addState(new CivilUnitView());
		this.addState(new BoatUnitView());
		this.addState(new MapView());
		this.addState(new TransportView());
		this.enterState(EnumView.LOADGAME.getId());
	}

	@Override
	public void initStatesList(GameContainer gameContainer) throws SlickException
	{
		// this.getState(IndustryView.INDUSTRYVIEW).init(gameContainer, this);
		// this.getState(CivilUnitView.CIVILUNITVIEW).init(gameContainer, this);
	}

  @Override
  protected URL getThemeURL()
  {
    return MainView.class.getResource("ui/theme.xml");
  }
}
